#!/bin/sh

#export TMPDIR="D:/temp/android"
export NDK='/home/a/Downloads/android-ndk-r10e/'
export PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/
export PLATFORM=$NDK/platforms/android-8/arch-arm/

   #--enable-encoder=aac \
 ./configure --target-os=linux \
    --arch=arm \
   --enable-version3 \
   --enable-gpl \
   --enable-nonfree \
   --disable-doc \
   --disable-stripping \
   --disable-ffplay \
   --disable-ffprobe \
   --disable-encoders \
   --disable-decoders \
   --enable-decoder=h264 \
   --enable-decoder=aac \
   --enable-decoder=rawvideo \
   --enable-decoder=pcm_s16le \
   --enable-encoder=libx264 \
   --enable-encoder=libfaac \
   --enable-libfaac \
   --disable-parsers \
   --enable-parser=h264 \
   --disable-demuxers \
   --enable-demuxer=h264 \
   --enable-demuxer=yuv4mpegpipe \
   --enable-demuxer=pcm_s16le \
   --disable-muxers \
   --enable-muxer=h264 \
   --enable-muxer=adts \
   --disable-devices \
   --disable-protocols \
   --enable-protocol=file \
   --disable-filters \
   --disable-bsfs \
   --enable-avfilter \
   --enable-network \
   --disable-avdevice \
   --enable-cross-compile \
   --cc=$PREBUILT/bin/arm-linux-androideabi-gcc \
   --cross-prefix=$PREBUILT/bin/arm-linux-androideabi- \
   --nm=$PREBUILT/bin/arm-linux-androideabi-nm \
   --extra-cflags="-fPIC  -I$PLATFORM/usr/include -I../x264-install/include -I../faac-install/include" \
   --extra-ldflags='-L$PLATFORM/usr/lib -L../x264-install/lib -L../faac-install/lib' \
   --extra-libs='-Wl,-Bstatic  -lm -Wl,-Bdynamic' \
   --prefix=../lib/ \
   --enable-libx264 \
#   --disable-asm \
#   --enable-neon \
#   --enable-armv5te \




